import inject from "@rollup/plugin-inject";
export default {
	input: "src/main.js",
	plugins: [
		inject({
			"modules":{
				React: [ 'react', '*' ],
				createElement: [ 'react', 'createElement' ],
				localStorage: [ 'storage-shim', 'localStorage' ],
				sessionStorage: [ 'storage-shim', 'sessionStorage' ],
				sessionStorage: [ 'storage-shim', 'sessionStorage' ],
				XMLHttpRequest: [ 'sky-core/polyfill/XMLHttpRequest', 'XMLHttpRequest' ],
				fetch: [ 'flash-file', 'fetch' ],
				FormData: [ 'flash-file', 'FormData' ],
				FileReader: [ 'flash-file', 'FileReader' ]
			},
			"exclude":[
				/support\.js$/
			]
		})
	],
	output: {
		file: "dist/bundle.js",
		format: "amd"
	},
};